<?php

//created 6/15/12
echo "<br>Meet your neighbors</br>";

$attributes = array('style' => 'display:inline;');

foreach ($titledata as $key => $row) {
    //print_r($row);
    //echo $row->getId();
    foreach ($row as $key2 => $row2) {
        echo "<br>key(region#) $key, row(title#) " . $row2->getId() . ", Charname " . $row2->getCharacterLink()->getCharacterName() . "-" . $row2->getCharacterLink()->getId();
        echo form_open('character/claim_title_select',$attributes);
        echo form_hidden('whichTitle',$row2->getId());
        echo form_submit('submit','Claim This Title');
        echo form_close();
    }
}
